<h1>Total people - <?php echo $this->TP; ?></h1>
<?php

foreach ( $this->P as $a) {

	echo "<h2>".$a['Title']." - ".$a['TotalPeople']."</h2><br/>\n";

	foreach ( $this->U as $Usr ) {
		if ( $Usr['Id'] == $a['Id'] ){
			if ( $Usr['FB'] ){
				echo '<a href="'.$Usr['Link'].'"><img src="https://graph.facebook.com/'.$Usr['FB'].'/picture" border="0"></a>';
			}
			if ( $Usr['FirstName']  ) echo ' '.$Usr['FirstName'].' ';
			if ( $Usr['LastName']  ) echo $Usr['LastName'].' ';
			echo 'from ';
			if ( $Usr['City']  ) echo $Usr['City'].', ';
			if ( $Usr['Country']  ) echo $Usr['Country']."<br/>\n";
		}
	}

}
?>